<?php
require_once("./DButil.php");
$id=$_REQUEST["id"];
$sql = "select * from t_product where p_id = '{$id}'";
$arr=query($sql);
$p=$arr[0];
header("Content-Type:text/html;charset=utf-8");
echo "<h3>商品信息:</h3>
        <div id=\"show\" >
        <div>{$p['p_id']}</div>
        <div>{$p['p_name']}</div>
        <div>{$p['p_price']}</div>
        <div>{$p['p_unit']}</div>
        <div><img style='width:200px' src=\"{$p['p_image_url']}\" alt=\"no image\"></div>
    </div>";

?>